//
//  LCClassificationHeader.m
//  LongChain
//
//  Created by FengZi on 2018/4/9.
//  Copyright © 2018年 FengZi. All rights reserved.
//

#import "LCClassificationHeader.h"

@implementation LCClassificationHeader

- (void)lc_updateHeadWithTagCount:(NSInteger)tagCount {
    
    self.moreActionButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;
    if (tagCount > 0) {
        self.moreActionButton.enabled = YES;
        [self.moreActionButton setTitleColor:RGB(80.0f, 149.0f, 244.0) forState:UIControlStateNormal];
        [self.moreActionButton setTitleColor:RGB(80.0f, 149.0f, 244.0) forState:UIControlStateSelected];
    }else{
        [self.moreActionButton setTitleColor:RGB(153.0f, 153.0f, 153.0f) forState:UIControlStateNormal];
        [self.moreActionButton setTitleColor:RGB(153.0f, 153.0f, 153.0f) forState:UIControlStateSelected];
        self.moreActionButton.enabled = NO;

    }
}

- (IBAction)lookMoreTag:(id)sender {
    
    if (self.checkTags) {
        self.checkTags();
    }
}

@end
